package framework.util;

import java.io.Serializable;

import framework.grid.NodePeer;

public class PeerNode extends Node implements Serializable{

	private final NodePeer peer;
	
	public PeerNode(String name, String path, NodePeer peer) {
		super(name, path);
		this.peer = peer;
	}

	public PeerNode(PeerNode oldNode, String newPath){
		super(oldNode.name, newPath);
		this.peer = oldNode.peer;
	}
	
	public NodePeer getPeer() {
		return peer;
	}

}
